/**
 * @Author: zhoujie
 * @Date: 2019/08/24
 * @Last Modified by: 焦质晔
 * @Last Modified time: 2020-02-01 12:51:41
 */
const RouteView = () => import('@/layout/RouteView');
// 异步路由组件加载
const AsyncComponent = __name__ => () => import(`@/pages/${__name__}`);

/** 客户关怀 菜单路由 */
const menuRoutes = [
  /** 客户关怀 S */
  {
    path: 'customerRepair',
    meta: { title: '客户关怀', icon: 'el-icon-user-solid' },
    redirect: '/',
    component: RouteView,
    children: [
      {
        path: '/customerRepair/customerInfo',
        meta: { title: '客户信息管理' },
        redirect: '/',
        component: RouteView,
        children: [
          // {
          //   path: ' ',
          //   meta: { title: '车辆过户', keepAlive: true },
          //   component: AsyncComponent('customerRepair/customerInfo/vehicleChange')
          // },
          {
            path: '/customerRepair/customerInfo/vinChange',
            meta: { title: '车牌号/VIN更改', keepAlive: true },
            component: AsyncComponent('customerRepair/customerInfo/vinChange')
          },
          {
            path: '/customerRepair/customerInfo/customerRepair',
            meta: { title: '保有客户维护', keepAlive: true },
            component: AsyncComponent('customerRepair/customerInfo/customerRepair')
          }
        ]
      },
      {
        path: '/customerRepair/vehicleOwnerManagement',
        meta: { title: '车主车辆管理' },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/customerInfo/ownerVehicleManagement',
            meta: {
              title: '车主车辆管理',
              keepAlive: true,
              trainModuleId: '552010'
            },
            component: AsyncComponent('customerRepair/customerInfo/ownerVehicleManagement')
          },
          {
            path: '/customerRepair/customerInfo/vehicleChange',
            meta: { title: '车辆过户', keepAlive: true },
            component: AsyncComponent('customerRepair/customerInfo/vehicleChange')
          },
          {
            path: '/customerRepair/vehicleOwnerManagement/keyInfoChangeOfOwner',
            meta: { title: '车主关键信息变更', keepAlive: true },
            component: AsyncComponent('customerRepair/vehicleOwnerManagement/keyInfoChangeOfOwner')
          },
          {
            path: '/customerRepair/vehicleOwnerManagement/ownerQuery',
            meta: { title: '车主查询', keepAlive: true },
            component: AsyncComponent('customerRepair/vehicleOwnerManagement/ownerQuery')
          },
          {
            path: '/customerRepair/vehicleOwnerManagement/vehicleQuery',
            meta: { title: '车辆查询', keepAlive: true },
            component: AsyncComponent('customerRepair/vehicleOwnerManagement/vehicleQuery')
          },
          {
            path: '/customerRepair/vehicleOwnerManagement/vehicleChangeQuery',
            meta: { title: '车辆过户查询', keepAlive: true },
            component: AsyncComponent('customerRepair/vehicleOwnerManagement/vehicleChangeQuery')
          },
          {
            path: '/customerRepair/vehicleOwnerManagement/keyInfoChangeOfOwnerQuery',
            meta: { title: '车主关键信息变更查询', keepAlive: true },
            component: AsyncComponent('customerRepair/vehicleOwnerManagement/keyInfoChangeOfOwnerQuery')
          },
          {
            path: '/customerRepair/vehicleOwnerManagement/vehicleTransfer',
            meta: {
              title: '车辆过户信息查询',
              keepAlive: true,
            },
            component: AsyncComponent('customerRepair/vehicleOwnerManagement/vehicleTransfer')
          },
          {
            path: '/customerRepair/vehicleOwnerManagement/VehicleMileageChange',
            meta: {
              title: '车辆里程变更审核',
              keepAlive: true,
            },
            component: AsyncComponent('customerRepair/vehicleOwnerManagement/VehicleMileageChange')
          }
        ]
      },
      {
        path: '/customerRepair/rescueManagement',
        meta: { title: '救援管理' },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/rescueManagement/rescueOrder',
            meta: {
              title: '救援单维护',
              keepAlive: true
            },
            component: AsyncComponent('customerRepair/rescueManagement/rescueOrder')
          },
          {
            path: '/customerRepair/rescueManagement/rescueOrderQuery',
            meta: { title: '救援单查询', keepAlive: true },
            component: AsyncComponent('customerRepair/rescueManagement/rescueOrderQuery')
          }
        ]
      },
      {
        path: '/customerRepair/rescueManagement',
        meta: { title: '救援管理' },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/rescueManagement/rescueOrder',
            meta: {
              title: '救援单维护',
              keepAlive: true
            },
            component: AsyncComponent('customerRepair/rescueManagement/rescueOrder')
          },
          {
            path: '/customerRepair/customerInfo/vehicleChange',
            meta: { title: '车辆过户', keepAlive: true },
            component: AsyncComponent('customerRepair/customerInfo/vehicleChange')
          }
        ]
      },

      {
        path: '/customerRepair/visitRules',
        meta: { title: '回访管理' },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/visitRules/visitRulesSet',
            meta: { title: '回访规则定义', keepAlive: true, trainModuleId: '651510' },
            component: AsyncComponent('customerRepair/visitRules/visitRulesSet')
          },
          {
            path: '/customerRepair/visitRules/questionnaireMake2/index',
            meta: { title: '问卷定义', keepAlive: true, trainModuleId: '651511' },
            component: AsyncComponent('customerRepair/visitRules/questionnaireMake2/index')
          },
          {
            path: '/customerRepair/saleVisit/taskDistribution',
            meta: { title: '回访分配', keepAlive: true, trainModuleId: '651512' },
            component: AsyncComponent('customerRepair/saleVisit/taskDistribution')
          },
          {
            path: '/customerRepair/usedCarVisit/taskDistribution',
            meta: { title: '战败回访', keepAlive: true, trainModuleId: '651514' },
            component: AsyncComponent('customerRepair/usedCarVisit/taskDistribution')
          },
          {
            path: '/customerRepair/activityVisit/taskDistribution',
            meta: { title: '潜客回访', keepAlive: true, trainModuleId: '651515' },
            component: AsyncComponent('customerRepair/activityVisit/taskDistribution')
          },
          {
            path: '/customerRepair/saleVisit/taskEntry',
            meta: { title: '销售回访', keepAlive: true, trainModuleId: '651516' },
            component: AsyncComponent('customerRepair/saleVisit/taskEntry')
          },
          {
            path: '/customerRepair/afterSaleVisit/resultEntry',
            meta: { title: '售后回访录入', keepAlive: true, trainModuleId: '651517' },
            component: AsyncComponent('customerRepair/afterSaleVisit/resultEntry')
          },
          {
            path: '/customerRepair/usedCarVisit/taskEntry',
            meta: { title: '二手车回访', keepAlive: true, trainModuleId: '651518' },
            component: AsyncComponent('customerRepair/usedCarVisit/taskEntry')
          },
          {
            path: '/customerRepair/activityVisit/taskEntry',
            meta: { title: '活动回访', keepAlive: true, trainModuleId: '651519' },
            component: AsyncComponent('customerRepair/activityVisit/taskEntry')
          },
          {
            path: '/customerRepair/visitRules/SMSTemplate/index',
            meta: { title: '短信模板', keepAlive: true },
            component: AsyncComponent('customerRepair/visitRules/SMSTemplate/index')
          },
          {
            path: '/customerRepair/visitRules/careTask/index',
            meta: { title: '关爱计划自动设置', keepAlive: true },
            component: AsyncComponent('customerRepair/visitRules/careTask/index')
          },
          {
            path: '/customerRepair/visitRules/careTaskSearch/index',
            meta: { title: '关爱任务查询', keepAlive: true },
            component: AsyncComponent('customerRepair/visitRules/careTaskSearch/index')
          },
          {
            path: '/customerRepair/visitRules/salesVisit/index',
            meta: { title: '销售回访', keepAlive: true },
            component: AsyncComponent('customerRepair/visitRules/salesVisit/index')
          },
          {
            path: '/customerRepair/visitRules/preSales/index',
            meta: { title: '售前回访', keepAlive: true },
            component: AsyncComponent('customerRepair/visitRules/preSales/index')
          },
          {
            path: '/customerRepair/visitRules/SMSTemplate2/index',
            meta: { title: '短信模板(售前)', keepAlive: true },
            component: AsyncComponent('customerRepair/visitRules/SMSTemplate2/index')
          },
          {
            path: '/customerRepair/visitRules/careTask2/index',
            meta: { title: '关爱计划自动设置(售前)', keepAlive: true },
            component: AsyncComponent('customerRepair/visitRules/careTask2/index')
          },
          {
            path: '/customerRepair/visitRules/careTaskSearch2/index',
            meta: { title: '关爱任务查询(售前)', keepAlive: true },
            component: AsyncComponent('customerRepair/visitRules/careTaskSearch2/index')
          },
          {
            path: '/customerRepair/visitRules/salesVisit2/index',
            meta: { title: '销售回访(售前)', keepAlive: true },
            component: AsyncComponent('customerRepair/visitRules/salesVisit2/index')
          },
          {
            path: '/customerRepair/visitRules/preSales2/index',
            meta: { title: '售前回访(售前)', keepAlive: true },
            component: AsyncComponent('customerRepair/visitRules/preSales2/index')
          }
        ]
      },
      {
        path: '/customerRepair/saleVisit',
        meta: { title: '销售回访' },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/saleVisit/taskDistribution/saleIndex',
            meta: { title: '销售回访分配', keepAlive: true },
            component: AsyncComponent('customerRepair/saleVisit/taskDistribution/saleIndex')
          },
          {
            path: '/customerRepair/saleVisit/returnVisitSettings',
            meta: { title: '回访计划设置', keepAlive: true },
            component: AsyncComponent('customerRepair/saleVisit/returnVisitSettings')
          },
          {
            path: '/customerRepair/saleVisit/taskEntry',
            meta: { title: '销售回访录入', keepAlive: true },
            component: AsyncComponent('customerRepair/saleVisit/taskEntry')
          },
          {
            path: '/customerRepair/saleVisit/resultQuery',
            meta: { title: '销售回访结果查询', keepAlive: true },
            component: AsyncComponent('customerRepair/saleVisit/resultQuery')
          }
        ]
      },
      {
        path: '/customerRepair/usedCarVisit',
        meta: { title: '二手车回访' },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/usedCarVisit/taskEntry',
            meta: { title: '二手车回访任务录入', keepAlive: true, trainModuleId: '651518' },
            component: AsyncComponent('customerRepair/usedCarVisit/taskEntry')
          },
          {
            path: '/customerRepair/usedCarVisit/resultQuery',
            meta: { title: '二手车回访结果查询', keepAlive: true },
            component: AsyncComponent('customerRepair/usedCarVisit/resultQuery')
          }
        ]
      },
      {
        path: '/customerRepair/activityVisit',
        meta: { title: '活动回访' },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/activityVisit/resultQuery',
            meta: { title: '活动回访结果查询', keepAlive: true },
            component: AsyncComponent('customerRepair/activityVisit/resultQuery')
          }
        ]
      },
      {
        path: '/customerRepair/afterSaleVisit',
        meta: { title: '售后回访' },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/afterSaleVisit/taskDistribution',
            meta: { title: '售后回访分配', keepAlive: true },
            component: AsyncComponent('customerRepair/afterSaleVisit/taskDistribution')
          },
          {
            path: '/customerRepair/afterSaleVisit/resultEntry',
            meta: { title: '售后回访录入', keepAlive: true },
            component: AsyncComponent('customerRepair/afterSaleVisit/resultEntry')
          },
          {
            path: '/customerRepair/afterSaleVisit/resultQuery',
            meta: { title: '售后回访结果查询', keepAlive: true },
            component: AsyncComponent('customerRepair/afterSaleVisit/resultQuery')
          }
        ]
      },
      {
        path: '/customerRepair/customerLoss',
        meta: { title: '客户流失跟踪' },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/customerLoss/taskEntry',
            meta: { title: '客户流失回访录入', keepAlive: true },
            component: AsyncComponent('customerRepair/customerLoss/taskEntry')
          },
          {
            path: '/customerRepair/customerLoss/resultQuery',
            meta: { title: '客户流失回访结果查询', keepAlive: true },
            component: AsyncComponent('customerRepair/customerLoss/resultQuery')
          },
          {
            path: '/customerRepair/customerLoss/taskAllocation',
            meta: { title: '客户流失任务分配', keepAlive: true },
            component: AsyncComponent('customerRepair/customerLoss/taskAllocation')
          }
        ]
      },
      {
        path: '/customerRepair/callcenter',
        meta: { title: '呼入接待' },
        hideInMenu: true,
        redirect: '/customerRepair/callcenter/Inbound',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/callcenter/Inbound',
            meta: { title: '呼入接待', keepAlive: true, trainModuleId: '650501' },
            hideInMenu: true,
            component: AsyncComponent('customerRepair/callcenter/inbound')
          }
        ]
      },
      {
        path: '/customerRepair/customerComplaint',
        meta: { title: '投诉管理' },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/customerComplaint/customerComplaintReception',
            meta: { title: '客诉单维护', keepAlive: true, trainModuleId: '651010' },
            component: AsyncComponent('customerRepair/customerComplaint/customerComplaintReception')
          },
          {
            path: '/customerRepair/customerComplaint/customerComplaintQuery',
            meta: { title: '客户投诉查询', keepAlive: true, trainModuleId: '651013' },
            component: AsyncComponent('customerRepair/customerComplaint/customerComplaintQuery')
          },
          {
            path: '/customerRepair/customerComplaint/customerComplaintAnalysis',
            meta: { title: '客诉单受理', keepAlive: true, trainModuleId: '651011' },
            component: AsyncComponent('customerRepair/customerComplaint/customerComplaintAnalysis')
          },
          {
            path: '/customerRepair/customerComplaint/customerComplaintClose',
            meta: { title: '结案审核', keepAlive: true, trainModuleId: '651012' },
            component: AsyncComponent('customerRepair/customerComplaint/customerComplaintClose')
          },
          {
            path: '/customerRepair/customerComplaint/customerComplaintHandling',
            meta: { title: '客户投诉处理情况', keepAlive: true },
            component: AsyncComponent('customerRepair/customerComplaint/customerComplaintHandling')
          },
          {
            path: '/customerRepair/customerComplaint/customerComplaintMng',
            meta: { title: '客诉单管理', keepAlive: true, trainModuleId: '651014' },
            component: AsyncComponent('customerRepair/customerComplaint/customerComplaintMng')
          }
        ]
      },
      {
        path: '/customerRepair/customerCare',
        meta: { title: '关怀提醒' },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/customerCare/birthdayRemind',
            meta: { title: '生日提醒', keepAlive: true, trainModuleId: '652010' },
            component: AsyncComponent('customerRepair/customerCare/birthdayRemind')
          },
          {
            path: '/customerRepair/customerLoss/lossWarningSet',
            meta: { title: '流失预警设置', keepAlive: true, trainModuleId: '652013' },
            component: AsyncComponent('customerRepair/customerLoss/lossWarningSet')
          },
          {
            path: '/customerRepair/customerLoss/lossRemind',
            meta: { title: '流失提醒', keepAlive: true, trainModuleId: '652014' },
            component: AsyncComponent('customerRepair/customerLoss/lossRemind')
          },
          {
            path: '/customerRepair/customerCare/carTaskSearch2/index',
            meta: { title: '关爱任务查询(售前)', keepAlive: true },
            component: AsyncComponent('customerRepair/customerCare/carTaskSearch2/index')
          },
          {
            path: '/customerRepair/customerCare/potentialCustomerBirthday2/index',
            meta: { title: '潜客生日关怀(售前)', keepAlive: true },
            component: AsyncComponent('customerRepair/customerCare/potentialCustomerBirthday2/index')
          },
          {
            path: '/customerRepair/customerCare/customerHoliday2/index',
            meta: { title: '特殊假日关怀(售前)', keepAlive: true },
            component: AsyncComponent('customerRepair/customerCare/customerHoliday2/index')
          },
          {
            path: '/customerRepair/customerCare/insuranceDueRemind',
            meta: { title: '保险到期提醒', keepAlive: true },
            component: AsyncComponent('customerRepair/customerCare/insuranceDueRemind')
          },
          {
            path: '/customerRepair/customerCare/maintenanceRemind',
            meta: { title: '自定义关怀提醒', keepAlive: true, trainModuleId: '652012' },
            component: AsyncComponent('customerRepair/customerCare/maintenanceRemind')
          },
          {
            path: '/customerRepair/customerCare/guaranteedRemind',
            meta: { title: '质保提醒', keepAlive: true, trainModuleId: '652011' },
            component: AsyncComponent('customerRepair/customerCare/guaranteedRemind')
          },
          {
            path: '/customerRepair/customerCare/vehicleRemind',
            meta: { title: '首保提醒', keepAlive: true },
            component: AsyncComponent('customerRepair/customerCare/vehicleRemind')
          },
          {
            path: '/customerRepair/customerCare/regularMaintenanceReminder',
            meta: { title: '定期保养提醒', keepAlive: true },
            component: AsyncComponent('customerRepair/customerCare/regularMaintenanceReminder')
          },
          {
            path: '/customerRepair/customerCare/adviceQuery',
            meta: { title: '维修建议查询', keepAlive: true },
            component: AsyncComponent('customerRepair/customerCare/adviceQuery')
          },
          {
            path: '/customerRepair/customerCare/inspectRemind',
            meta: { title: '年检提醒', keepAlive: true },
            component: AsyncComponent('customerRepair/customerCare/inspectRemind')
          },
          {
            path: '/customerRepair/customerCare/extendWarrantyRemind',
            meta: { title: '延保提醒', keepAlive: true, trainModuleId: '652015' },
            component: AsyncComponent('customerRepair/customerCare/extendWarrantyRemind')
          }
        ]
      },
      {
        path: '/customerRepair/monitor',
        meta: { title: '监控信息设定' },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/monitor/monitorInfo',
            meta: { title: '监控信息设定', keepAlive: true },
            component: AsyncComponent('customerRepair/monitor/monitorInfo')
          }
        ]
      },
      {
        path: '/customerRepair/rtmAlarm',
        meta: { title: 'RTM报警信息' },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/RTMalarm/RTMalarmprocessing',
            meta: { title: 'RTM报警信息处理', keepAlive: true, trainModuleId: '653010' },
            component: AsyncComponent('customerRepair/RTMalarm/RTMalarmprocessing')
          }
        ]
      },
      {
        path: '/customerRepair/visitAnalysis',
        meta: { title: '回访统计分析' },
        redirect: '/',
        component: RouteView,
        children: [
          {
            path: '/customerRepair/visitAnalysis/repairVisitDetail',
            meta: { title: '维修回访明细统计报表', keepAlive: true, trainModuleId: '652510' },
            component: AsyncComponent('customerRepair/visitAnalysis/repairVisitDetail')
          },
          {
            path: '/customerRepair/visitAnalysis/repairVisitEfficiency',
            meta: { title: '维修回访效率统计报表', keepAlive: true, trainModuleId: '652511' },
            component: AsyncComponent('customerRepair/visitAnalysis/repairVisitEfficiency')
          },
          {
            path: '/customerRepair/visitAnalysis/repairVisitQuality',
            meta: { title: '维修回访质量统计报表', keepAlive: true, trainModuleId: '652512' },
            component: AsyncComponent('customerRepair/visitAnalysis/repairVisitQuality')
          },
          {
            path: '/customerRepair/visitAnalysis/repairClientQuality',
            meta: { title: '维修客户质量统计报表', keepAlive: true, trainModuleId: '652513' },
            component: AsyncComponent('customerRepair/visitAnalysis/repairClientQuality')
          },
          {
            path: '/customerRepair/visitAnalysis/repairServiceQuality',
            meta: { title: '维修服务质量统计监控', keepAlive: true, trainModuleId: '652514' },
            component: AsyncComponent('customerRepair/visitAnalysis/repairServiceQuality')
          },
          {
            path: '/customerRepair/visitAnalysis/repairUnsatisfiedReason',
            meta: { title: '维修不满意因子统计', keepAlive: true, trainModuleId: '652515' },
            component: AsyncComponent('customerRepair/visitAnalysis/repairUnsatisfiedReason')
          },
          {
            path: '/customerRepair/visitAnalysis/visitConditionScan',
            meta: { title: '回访情况一览', keepAlive: true, trainModuleId: '652516' },
            component: AsyncComponent('customerRepair/visitAnalysis/visitConditionScan')
          },
          {
            path: '/customerRepair/visitAnalysis/visitCompositeScan',
            meta: { title: '回访综合概览统计报表', keepAlive: true, trainModuleId: '652517' },
            component: AsyncComponent('customerRepair/visitAnalysis/visitCompositeScan')
          },
          {
            path: '/customerRepair/visitAnalysis/trustDeedVisitScan',
            meta: { title: '委托单回访一览', keepAlive: true, trainModuleId: '652518' },
            component: AsyncComponent('customerRepair/visitAnalysis/trustDeedVisitScan')
          },
          {
            path: '/customerRepair/visitAnalysis/SaleVisitScore',
            meta: { title: '销售回访得分统计', keepAlive: true, trainModuleId: '652519' },
            component: AsyncComponent('customerRepair/visitAnalysis/SaleVisitScore')
          },
          {
            path: '/customerRepair/visitAnalysis/repairVisitScore',
            meta: { title: '维修回访得分统计', keepAlive: true, trainModuleId: '652520' },
            component: AsyncComponent('customerRepair/visitAnalysis/repairVisitScore')
          }
        ]
      }
    ]
  }
  /** 客户关怀 E */
];

export default menuRoutes;
